package design.Proxy;

/**
 * Created by looper on 2017/8/16.
 */
public class Intermediary implements Home {
  private Custom custom;

  public Intermediary(){
    this.custom = new Custom();
  }

  @Override
  public void selectHome() {
    before();
    custom.selectHome();
    after();
  }

  private void before(){
    System.out.println("中介找房源");
  }

  private void after(){
    System.out.println("签合同");
  }
}
